package com.madi.company.contract;

import com.jaydenxiao.common.base.BaseModel;
import com.jaydenxiao.common.base.BasePresenter;
import com.jaydenxiao.common.base.BaseView;
import com.madi.company.bean.SearchResumeEntity;

import java.util.Map;

import rx.Observable;

/**
 * Created by 丁宁
 * on 2017/2/14.
 */

public interface SearchResumeContract {
    interface Model extends BaseModel {
        Observable<SearchResumeEntity> getResumeData(Map<String, String> map);
    }

    interface View extends BaseView {
        void returnResumeData(SearchResumeEntity entity);

        void returnLoadMoreResumeData(SearchResumeEntity entity);

        void returnRefreshResumeData(SearchResumeEntity entity);
    }

    abstract static class Presenter extends BasePresenter<View, Model> {
        public abstract void getData(Map<String, String> map,String refreshOrLoadMore);
    }
}
